package com.whmnx.my.ui.adapter;

import android.view.ViewGroup;

import androidx.databinding.ViewDataBinding;

import com.whmnx.my.ui.viewmodel.ViewPagerItemBodouViewModel;
import com.whmnx.my.ui.viewmodel.ViewPagerItemBodouViewModel2;
import com.whmnx.my.ui.viewmodel.ViewPagerItemViewModel2;

import me.tatarka.bindingcollectionadapter2.BindingViewPagerAdapter;

/**
 *
 * @author goldze
 * @date 2018/6/21
 */

public class ViewPagerBindingAdapter3 extends BindingViewPagerAdapter<ViewPagerItemViewModel2> {
    @Override
    public void onBindBinding(final ViewDataBinding binding, int variableId, int layoutRes, int position, ViewPagerItemViewModel2 item) {
        super.onBindBinding(binding, variableId, layoutRes, position, item);
        //这里可以强转成ViewPagerItemViewModel对应的ViewDataBinding，
     //   ItemViewpagerBinding _binding = (ItemViewpagerBinding) binding;
    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {
        super.destroyItem(container, position, object);
    }
}
